package com.SunSoft.PhoneRemoteControl;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.ArrayList;

final class c extends BaseAdapter
{
  private Context b;
  private ArrayList c;

  public c(CustomerSpinner paramCustomerSpinner, Context paramContext, ArrayList paramArrayList)
  {
    this.b = paramContext;
    this.c = paramArrayList;
  }

  public final int getCount()
  {
    return this.c.size();
  }

  public final Object getItem(int paramInt)
  {
    return Integer.valueOf(paramInt);
  }

  public final long getItemId(int paramInt)
  {
    return paramInt;
  }

  public final View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    View localView;
    if ((paramView == null) && (CustomerSpinner.a(this.a).size() != 0))
    {
      paramView = new d(this);
      localView = LayoutInflater.from(this.b).inflate(2130903060, null);
      paramView.a = ((TextView)localView.findViewById(2131165349));
      localView.setTag(paramView);
      paramViewGroup = paramView;
    }
    while (true)
    {
      paramViewGroup.a.setText((CharSequence)this.c.get(paramInt));
      return localView;
      paramViewGroup = (d)paramView.getTag();
      localView = paramView;
    }
  }
}